﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcCaja.Core.Interfaces;
using MvcCaja.Dal.Models;

namespace MvcCaja.Core
{
    public class OrdenService : IOrdenService
    {
        public Orden obtenerOrden(string CodigoOrden)
        {
            ModelDataContext db = new ModelDataContext();

            return (from n in db.Orden
                    where n.IdOrden.Equals(CodigoOrden)
                    select n).First();
        }
    }
}
